<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminer后台管理系统</title>
<link href="<{$APP_PUBLIC_PATH}>images/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$APP_PUBLIC_PATH}>javascript/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ //这个就是传说的ready
		$("#main_big").slideToggle("slow");
});
</script>
</head>

<body style="background:#FFF">
<iframe name="get" style="display:none;"></iframe>
	<div id="main_big" style="display:none">友情连接</div>
    <div id="main_contents">
    <div id="main_description">描述：友情连接管理</div>
<script type="text/javascript">
$(document).ready(function(){	   
        $(".main_table tr").mouseover(function(){
                $(this).addClass("over");}).mouseout(function(){
                $(this).removeClass("over");}) 
        $(".main_table tr:even").addClass("alt");
			$('.show_m').click(function(){
				var pid = +$(this).find('.pid').html();
				$.ajax({
					type: 'POST',
					url: '?m=Index&a=ajax_link_show',data: 'pid='+pid+'&show_m='+$(this).find('.show_me').html(),
					dataType:'json',
					success: function(json){
					$('#c' + pid).html(json.show);
					$('#s' + pid).html(json.value);
					}
				});
			}); 
});
</script>
    <form id="form1" name="form1" method="post" target="get" action="?m=Index&a=link_delete">
    <div id="table_c">
    	<table border="0" cellspacing="1" class="main_table">
       		 <tr>
            	<th width="30" align="center">删</th>
                <th width="50">ID</th>
                <th>友情连接名称</th>
                <th>连接英文名称</th>
                <th>网址</th>
                <th>Logo</th>
            	<th>排序</th>
            	<th>是否显示</th>
                <th>编辑</th>
            </tr>
        <if condition="!empty($link)">
            <volist name="link" id="vo">
        	<tr>
            	<td width="30" align="center"><input type="checkbox" name="del[]" id="del" value="<{$vo.link_id}>"></td>
                <td><{$vo.link_id}></td>
                <td><{$vo.name}></td>
            	<td><{$vo.e_name}></td>
            	<td><{$vo.url}></td>
            	<td><img src="<{$vo.logo}>" /></td>
                <td><{$vo.sorting}></td>
            	<td class="show_m" style="cursor:pointer;"><span class="pid" style="display:none;"><{$vo.link_id}></span><span id="s<{$vo.link_id}>" class="show_me" style="display:none;"><{$vo.show_m}></span>
                <span id="c<{$vo.link_id}>" class="show"><if condition="$vo.show_m eq 1">是<else /><font color="#FF0000">否</font></if></span>
                </td>
                <td><a href="?m=Index&a=link_edit&pid=<{$vo.link_id}>">[详细]</a></td>
            </tr>
            </volist>
          <else />
          <tr>
            <td colspan="10">当前没有任何记录</td>
          </tr>
        </if>
        </table>
                  </div>
        <div id="page"><{$page}></div>
            	  <input onclick="return confirm('确定删除?')" type="submit" name="button" id="button" class="main_get" value="提  交" />
        </form>

	</div>


</body>
</html>